<table class="table table-bordered table-hover table-striped">
	<tbody>
		<!--编号、合同号、房间号、订单号、OPID、支付方式、费用类型、支付金额、支付时间、下载收据-->
		<tr align="center">
			<td><strong>编号</strong></td>
			<td width="10%"><strong>合同号</strong></td>
			<td><strong>房间号</strong></td>
			<td><strong>OpenId</strong></td>
			<td><strong>订单号</strong></td>
			<td><strong>支付方式</strong></td>
			<td><strong>费用类型</strong></td>
			<td><strong>支付金额</strong></td>
			<td><strong>支付时间</strong></td>
			<td><strong>下载收据</strong></td>
		</tr>
		<?php if($list){ foreach($list as $k=>$ls){ ?>
		<tr align="center">
			<td><?php echo ($page-1)*C('PAGE_SIZE')+($k+1); ?></td>
			<td>{$ls['contract']}</td>
			<td>{$ls['roomnumber']}</td>
			<td>{$ls['openid']}</td>
			<td>{$ls['order_sn']}</td>
			<td>
				<?php 
					switch($ls['pay_type']){
						case 1:
							echo '支付宝';
						break;
						case 2:
							echo '微信';
						break;
						case 3:
							echo '减免';
						break;
						case 4:
							echo '余额';
						break;
						default:
							echo '现金';
						break;
					}
				?>
			</td>
			<!--1：水费 2：电费 3：气费 4: 取卡 5：续费 6: 减免-->
			<td>
				<?php 
					switch($ls['type_id']){
						case 1:
							echo '水费';
						break;
						case 2:
							echo '电费';
						break;
						case 3:
							echo '气费';
						break;
						case 4:
							echo '租卡';
						break;
						case 5:
							echo '充值';
						break;
						case 6:
							echo '减免';
						break;
						case 7:
							echo '房租';
						break;
					}
				?>
			</td>
			<td>{$ls['point']}</td>
			<td>
				<?php echo date('Y-m-d H:i:s', $ls['paytime']); ?>
			</td>
			<td>
				<?php if($ls['type_id'] == 7){ ?>
				<a href="javascript:void(0);">下载</a>
				<?php } ?>
			</td>
		</tr>
		<?php } }else{ ?>
		<tr align="center">
			<td colspan="14">暂无数据...</td>
		</tr>
		<?php } ?>
	</tbody>
</table>
<div class="pagination" style="float: right; widht: 95%">
	<include file="Common/page" />
</div>